package com.xuelang.pipeline.app.pipeline.converter;

import com.xuelang.pipeline.client.pipeline.dto.ChangeMgmtDTO;
import com.xuelang.pipeline.domain.pipeline.ChangeMgmt;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>组件变更管理DTO转换器</p>
 *
 * @author : yixin.lys
 * @date : 2024-08-02 14:07
 **/
@Mapper
public interface ChangeMgmtToDTOConverter {

    ChangeMgmtToDTOConverter INSTANCE = Mappers.getMapper(ChangeMgmtToDTOConverter.class);

    /**
     * 从DTO转换
     * @param target
     * @return
     */
    ChangeMgmt fromDTO(ChangeMgmtDTO target);

    /**
     * 转换为DTO
     * @param target
     * @return
     */
    ChangeMgmtDTO toDTO(ChangeMgmt target);

}
